/**********************************************************************
  The MIT License (MIT)
  Copyright (c) 2012 sunriseyuen

  Permission is hereby granted, free of charge, to any person obtaining
  a copy of this software and associated documentation files
  (the "Software"), to deal in the Software without restriction,
  including without limitation the rights to use, copy, modify, merge,
  publish, distribute, sublicense, and/or sell copies of the Software,
  and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be included
  in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
  THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ***********************************************************************/

#define _DEF_CCY_CODE
#define _ZZDEBUG
#define _PROJ_DC

#region Using directives
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;

using Muki.Framework.Util;
using Muki.Framework.Business;
using Muki.Framework;
using Muki.UserDefine;
using Muki.Entity;
using Dot.StreamObject;

#endregion

namespace Muki.UserPanel
{
	public class UID02802BE:EntityObject
	{
				private string _VQT_NO="";
				private string _VQT_DT="";
				private Int32 _SERIAL_NO=0;
				private bool _PRIM_VQT=false;
				private string _VEN_CODE="";
				private string _VEN_NAME01="";
				private string _ITEM_NO="";
				private string _ITEM_NAME01="";
				private string _UOM_CODE="";
				private string _ITEM_NAME02="";
				private string _VEN_ITEM_NO="";
				private string _VEN_ITEM_NAME01="";
				private decimal _VQT_QTY=0;
				private decimal _VQT_UNIT_PRICE=0;
				private string _UOM_VQT="";
				private decimal _VQT_REQ_QTY=0;
				private string _CCY_CODE="";
				private decimal _UOM_XCHG=0;
				private string _VQT_DT_RMKS="";
				private bool _UPDATE_VEN_ITEM=false;
				private decimal _LEAD_TM=0;
				private decimal _MIN_ORD=0;
				private decimal _PKG_ORD=0;

				[AttributeMapping(TableName="VQTDTLM",ColumnName="VQT_NO")]
					public string VQT_NO	{	get { return _VQT_NO; }	set { _VQT_NO = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="VQT_DT")]
					public string VQT_DT	{	get { return _VQT_DT; }	set { _VQT_DT = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="SERIAL_NO")]
					public Int32 SERIAL_NO	{	get { return _SERIAL_NO; }	set { _SERIAL_NO = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="PRIM_VQT")]
					public bool PRIM_VQT	{	get { return _PRIM_VQT; }	set { _PRIM_VQT = value; } }
				[AttributeMapping(TableName="VARIABLE",ColumnName="VEN_CODE")]
					public string VEN_CODE	{	get { return _VEN_CODE; }	set { _VEN_CODE = value; } }
				[AttributeMapping(TableName="VARIABLE",ColumnName="VEN_NAME01")]
					public string VEN_NAME01	{	get { return _VEN_NAME01; }	set { _VEN_NAME01 = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="ITEM_NO")]
					public string ITEM_NO	{	get { return _ITEM_NO; }	set { _ITEM_NO = value; } }
				[AttributeMapping(TableName="VARIABLE",ColumnName="ITEM_NAME01")]
					public string ITEM_NAME01	{	get { return _ITEM_NAME01; }	set { _ITEM_NAME01 = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="UOM_CODE")]
					public string UOM_CODE	{	get { return _UOM_CODE; }	set { _UOM_CODE = value; } }
				[AttributeMapping(TableName="VARIABLE",ColumnName="ITEM_NAME02")]
					public string ITEM_NAME02	{	get { return _ITEM_NAME02; }	set { _ITEM_NAME02 = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="VEN_ITEM_NO")]
					public string VEN_ITEM_NO	{	get { return _VEN_ITEM_NO; }	set { _VEN_ITEM_NO = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="VEN_ITEM_NAME01")]
					public string VEN_ITEM_NAME01	{	get { return _VEN_ITEM_NAME01; }	set { _VEN_ITEM_NAME01 = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="VQT_QTY")]
					public decimal VQT_QTY	{	get { return _VQT_QTY; }	set { _VQT_QTY = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="VQT_UNIT_PRICE")]
					public decimal VQT_UNIT_PRICE	{	get { return _VQT_UNIT_PRICE; }	set { _VQT_UNIT_PRICE = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="UOM_VQT")]
					public string UOM_VQT	{	get { return _UOM_VQT; }	set { _UOM_VQT = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="VQT_REQ_QTY")]
					public decimal VQT_REQ_QTY	{	get { return _VQT_REQ_QTY; }	set { _VQT_REQ_QTY = value; } }
				[AttributeMapping(TableName="VARIABLE",ColumnName="CCY_CODE")]
					public string CCY_CODE	{	get { return _CCY_CODE; }	set { _CCY_CODE = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="UOM_XCHG")]
					public decimal UOM_XCHG	{	get { return _UOM_XCHG; }	set { _UOM_XCHG = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="VQT_DT_RMKS")]
					public string VQT_DT_RMKS	{	get { return _VQT_DT_RMKS; }	set { _VQT_DT_RMKS = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="UPDATE_VEN_ITEM")]
					public bool UPDATE_VEN_ITEM	{	get { return _UPDATE_VEN_ITEM; }	set { _UPDATE_VEN_ITEM = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="LEAD_TM")]
					public decimal LEAD_TM	{	get { return _LEAD_TM; }	set { _LEAD_TM = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="MIN_ORD")]
					public decimal MIN_ORD	{	get { return _MIN_ORD; }	set { _MIN_ORD = value; } }
				[AttributeMapping(TableName="VQTDTLM",ColumnName="PKG_ORD")]
					public decimal PKG_ORD	{	get { return _PKG_ORD; }	set { _PKG_ORD = value; } }

		public List<LogisticException> Exceptions=new List<LogisticException>();

		private string _DATA_ATVT_CODE   = "";
		private string _DATA_STATUS_CODE = "Unproven";
		private string _NAVI_STATUS_CODE = "N";
		private string _ATVT_CODE        = "";
		private string _P_DATA           = "";
		private Wxf    _Wxf              = new Wxf();

		public  string DATA_STATUS_CODE { get { return _DATA_STATUS_CODE; } set { _DATA_STATUS_CODE = value; }  }
		public  string NAVI_STATUS_CODE { get { return _NAVI_STATUS_CODE; } set { _NAVI_STATUS_CODE = value; }  }
		public  string DATA_ATVT_CODE   { get { return _DATA_ATVT_CODE;   } set { _DATA_ATVT_CODE   = value; }  }
		public  string ATVT_CODE        { get { return _ATVT_CODE;        } set { _ATVT_CODE        = value; }  }
		public  string P_DATA           { get { return _P_DATA;           } set { _P_DATA = value;           }  }
		public  Wxf    Wxf              { get { return _Wxf;              } set { _Wxf = value;              }  }

		public string  PK_DATA
		{
			get
			{
				return ZZGeneral.Base64Encoder("VQT_DT="+this.VQT_DT); 
			}
		}

		private string _USECURITY_CODE1 = "";
		private string _USECURITY_CODE2 = "";
		private string _USECURITY_CODE3 = "";
		private string _USECURITY_CODE4 = "";
		private string _USECURITY_CODE5 = "";
		private string _USECURITY_CODE6 = "";
		private int    _USECURITY_RIGHT = 50;
		private string _UZADD_DATE      = "";
		private string _UZADD_USER      = "";
		private string _UZCHG_DATE      = "";
		private string _UZCHG_USER      = "";

		public string USECURITY_CODE1 { get { return _USECURITY_CODE1; } set { _USECURITY_CODE1 = value; }  }
		public string USECURITY_CODE2 { get { return _USECURITY_CODE2; } set { _USECURITY_CODE2 = value; }  }
		public string USECURITY_CODE3 { get { return _USECURITY_CODE3; } set { _USECURITY_CODE3 = value; }  }
		public string USECURITY_CODE4 { get { return _USECURITY_CODE4; } set { _USECURITY_CODE4 = value; }  }
		public string USECURITY_CODE5 { get { return _USECURITY_CODE5; } set { _USECURITY_CODE5 = value; }  }
		public string USECURITY_CODE6 { get { return _USECURITY_CODE6; } set { _USECURITY_CODE6 = value; }  }
		public int    USECURITY_RIGHT { get { return _USECURITY_RIGHT; } set { _USECURITY_RIGHT = value; }  }
		public string UZADD_DATE      { get { return _UZADD_DATE;      } set { _UZADD_DATE      = value; }  }
		public string UZADD_USER      { get { return _UZADD_USER;      } set { _UZADD_USER      = value; }  }
		public string UZCHG_DATE      { get { return _UZCHG_DATE;      } set { _UZCHG_DATE      = value; }  }
		public string UZCHG_USER      { get { return _UZCHG_USER;      } set { _UZCHG_USER      = value; }  }

	}
}
